//
//  TPView.m
//  CloudAtCostPanel
//
//  Created by leonardo on 2017/2/10.
//  Copyright © 2017年 tanpengsccd. All rights reserved.
//

#import "TPView.h"

@implementation TPView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{
    UIView * view = [super hitTest:point withEvent:event];
//    DDLogDebug(@"%@ %@",NSStringFromClass([self class]),view.debugDescription);
    return view;
}
-(void)addSubviews:(NSArray *)subviews{
    for (TPView * subiew in subviews) {
        if (subiew) {
            [self addSubview:subiew];
        }else{
            DDLogWarn(@"%@ is nill!/n %@",NSStringFromClass(subiew.class),subiew.debugDescription);
        }
        
    }
}
@end
